//window.onload = function() {
//    var input = document.getElementById('speechInput');
//    input.focus();
//};

//$("document").ready(function() {
//    setTimeout(function() {
//        $("speechInput").trigger('click');
//    },10);
//});

//jQuery(document).ready(function($){
//$("#speechInput").bind('click',function(){
//alert('click event is triggered');
//});
//
//$("#speechInput").trigger('click');
//});


function sendSpeech() {
    processspeech();
    var speechtext=$("#speechInput").val();
    var elem = document.getElementById("speechResult");
    elem.value = speechtext;
}

function processspeech() {
    var audio = new Audio();
    audio.src = 'http://translate.google.com/translate_tts?ie=utf-8&tl=pt&q=Claro%20mestre';
    audio.play();
    return;
}